using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace Sys.DataAccess
{
    public class ColumnMapEntry
    {
        //PropertyInfo is cached, since it is expensive to retrieve it every time.
        PropertyInfo propertyInfo;
        public PropertyInfo PropertyInfo
        {
            get { return propertyInfo; }
            set { propertyInfo = value; }
        }

        //ContainerName is the name of the class containing this property.
        //It will be "", if the Property directly belongs to the main object.
        //ie, Consider a class Person, with a property Age (int). Here, ContainerName will be ""
        //if Person contains another class called Country, Accessible as Person.Country,
        //The Person.Country.Continent property will have a ContainerName "Country".
        string containerName;
        public string ContainerName
        {
            get { return containerName; }
            set { containerName = value; }
        }
    }
}
